package com.sdhs.paas.gateway.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix="acmanage")
public class AcmanageConfig
{
  private String productName;
  private String serviceAddress;
  private OpenUrls openUrls;

  public String getProductName()
  {
    return this.productName;
  }

  public String getServiceAddress()
  {
    return this.serviceAddress;
  }

  public OpenUrls getOpenUrls()
  {
    return this.openUrls;
  }

  public void setProductName(String productName)
  {
    this.productName = productName; } 
  public void setServiceAddress(String serviceAddress) { this.serviceAddress = serviceAddress; } 
  public void setOpenUrls(OpenUrls openUrls) { this.openUrls = openUrls; }


  public static class OpenUrls
  {
    private String profile = "http://{serviceAddress}/open/profile";

    private String policy = "http://{serviceAddress}/open//account/{accountName}/policy";

    public String getProfile()
    {
      return this.profile;
    }

    public String getPolicy()
    {
      return this.policy;
    }

    public void setProfile(String profile)
    {
      this.profile = profile; } 
    public void setPolicy(String policy) { this.policy = policy; }

  }
}
